import Layout from '@/layout'
import EmptyLayout from '@/layout/empty'

export default {
    path: '/shop',
    component: Layout,
    redirect: '/shop',
    name: 'multilevelMenuExample',
    meta: {
        title: '产品管理',
        icon: 'sidebar-menu'
    },
    children: [
        {
            path: 'page',
            name: 'multilevelMenuExample1',
            component: () => import(/* webpackChunkName: 'shop' */ '@/views/shop/list'),
            meta: {
                title: '产品列表'
            }
        },
        {
            path: 'level2',
            name: 'multilevelMenuExample2',
            component: EmptyLayout,
            redirect: '/shop/level2/page',
            meta: {
                title: '组合产品'
            },
            children: [
                {
                    path: 'http://taobao.com',
                    // name: 'multilevelMenuExample2-1',
                    // component: () => import(/* webpackChunkName: 'shop' */ '@/views/shop/level2/page'),
                    meta: {
                        title: '产品列表'
                    }
                },
                {
                    path: 'level3',
                    name: 'multilevelMenuExample2-2',
                    component: EmptyLayout,
                    redirect: '/shop/level2/level3/page1',
                    meta: {
                        title: '产品管理'
                    }

                }
            ]
        }
    ]
}
